package org.epidroid.epidroid.chronos.engine.objects;

import java.util.ArrayList;
import java.util.List;

import org.epidroid.epidroid.chronos.engine.utils.ChronosUtils;

public class ChronosCalendar implements Printable {

	private List<ChronosWeek> _weeks = null;

	public ChronosCalendar() {
		_weeks = new ArrayList<ChronosWeek>();
	}

	public void addWeek(ChronosWeek week) {
		_weeks.add(week);
	}

	public List<ChronosWeek> getWeeks() {
		return _weeks;
	}

	public void print(Integer indent) {
		ChronosUtils.printWithIndent(indent, "Calendar:");
		indent += 4;
		for (ChronosWeek week : _weeks) {
			week.print(indent);
		}
	}

}
